Prepare VM
Create VM on PVE
4c16g
- qp-k3s1
- qp-k3s2
- qp-k3s3
Init VM
sudo apt update
sudo apt install -y vim git
- Setting up a non-root user
sudo adduser qipan
sudo vim /etc/sudoers.d/qipan
# qipan ALL=(ALL) NOPASSWD: ALL
su - qipan
scp root@10.200.60.176:/root/id_rsa.pub .
cat id_rsa.pub >> ~/.ssh/authorized_keys
Disabling password authentication
sudo vim /etc/ssh/sshd_config
## PasswordAuthentication no
How to remove VM in PVE
- ssh proxmox node
ssh root@<Node IP>
- list VMs(search VMID)
qm list
- stop VM
qm stop <VMID> --force
- remove VM
qm destroy <VMID> --destroy-unreferenced-disks --purge
- --destroy-unreferenced-disks:delete disk file.
- --pure: delete all configuration files and backup files.